﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Pizza-samengesteld.aspx.cs" Inherits="WebshopPizzaRio.Pizza_samengesteld" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<h1>Bestel samengestelde pizza's</h1> 
<br />
<div id = "pizzaoverzicht_div"> 
<asp:ListView ID = "pizzaoverzichtLV" runat="server" 
        DataKeyNames = "pizzaid,naam, prijs" 
        OnSelectedIndexChanging = "pizzaoverzichtLV_SelectedIndexChanging" 
        onpagepropertieschanged="pizzaoverzichtLV_PagePropertiesChanged" >

    <LayoutTemplate>
        <ul class = "pizzaoverzicht2">
            <asp:PlaceHolder ID = "itemPlaceholder" runat= "server" />
        </ul>

    </LayoutTemplate>

    <ItemTemplate>
        
        <li> 
            <h4> <a href="/Pizzadetails.aspx?id=<%#Eval("pizzaid") %>"><%#Eval("naam") %></a> </h4>

            <a href="/Pizzadetails.aspx?id=<%#Eval("pizzaid") %>"><img src = "Images/Pizza-verkoop/<%#Eval("pizzaid") %>.jpeg" alt = "Van deze pizza is geen foto beschikbaar" /></a> <br />

            Prijs per stuk:  €<%#Eval("prijs") %> <br /> 

            <asp:LinkButton ID="SelectPizza" runat="server" CommandName = "Select">Voeg toe aan de winkelwagen</asp:LinkButton>
        </li>
        
        
    </ItemTemplate>

    <EmptyDataTemplate>
        <div>
            Er staan geen samengestelde pizza's in de database.
        </div>
    </EmptyDataTemplate>
    </asp:ListView>
</div>

<br />
<br />
<div id = "datapager_pizza2">
    <asp:DataPager runat = "server" ID = "Datapager_pizzaoverzicht" PageSize = "9" PagedControlID = "pizzaoverzichtLV">
    <Fields>
    <asp:NextPreviousPagerField NextPageText = "Volgende pagina" PreviousPageText = "Vorige pagina"/>
    </Fields>
    </asp:DataPager>
</div>

</asp:Content>
